package com.audaque.jadmin.common.utils;

import java.sql.Connection;
import java.util.Properties;

import org.apache.ibatis.executor.statement.StatementHandler;
import org.apache.ibatis.plugin.Interceptor;
import org.apache.ibatis.plugin.Intercepts;
import org.apache.ibatis.plugin.Invocation;
import org.apache.ibatis.plugin.Signature;

/**
 * @Description :
 * @FileName: QueryInterceptor.java
 * @Author :WeiHui.Zhang
 * @Data : 2015年10月27日 下午2:44:13
 * @Version:V1.00
 */
@Intercepts(value = { @Signature(method = "prepare", type = StatementHandler.class, args = { Connection.class }) })
public class QueryInterceptor implements Interceptor {

	@Override
	public Object intercept(Invocation arg0) throws Throwable {
		
//		ReflectUtils.
		//FieldUtils.getField(cls, fieldName, forceAccess)
		return null;
	}

	@Override
	public Object plugin(Object arg0) {
		return null;
	}

	@Override
	public void setProperties(Properties arg0) {

	}

}
